FROM ubuntu:22.04


# 更新包列表并安装必要的工具和依赖
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    build-essential \
    cmake \
    wget \
    git \
    libmpfr6 \
    libmpfr-dev \
    libgomp1 \
    && rm -rf /var/lib/apt/lists/*

ADD buildroot-gcc1030-glibc232_kernel5_4.tgz /opt
ENV CC=/opt/buildroot-gcc1030-glibc232_kernel5_4/usr/bin/arm-buildroot-linux-gnueabi-gcc